package pe.edu.upc.dsd.rs;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

import com.google.gson.Gson;

public class SoundTrackService {

	@GET
	@Path("/soundtrack/{fecha}")
	@Produces("application/json")
	public String getSoundTrack(@PathParam("fecha") String fecha) {
		Gson gson = new Gson();
		SoundTrack soundtrack = new SoundTrack();
		soundtrack.setPelicula("Rapido y Furiosos Sin Control");
		soundtrack.setCancion("Fast");
		soundtrack.setCantante("Ludacrys");

		return gson.toJson(soundtrack); // Convierto de un bean Java a JSON ;)
	}
}
